import request from '@/utils/request'

export const getContractList = (params) => {
  return request({
    url: '/employ/contract/list',
    method: 'get',
    params
  })
}

export const exportContractList = params => {
  return request({
    url: 'employ/contract/exportList',
    method: 'get',
    params
  })
}

/**
 * 新增 编辑
*/
export const editConract = (data) => {
  return request({
    url: `/employ/contract/update`,
    method: 'post',
    data
  })
}
